import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from './pages/home/Home'
import Order from './pages/order/Order'
import Message from './pages/message/Message'
import Mine from './pages/mine/Mine'
import Registration from './pages/home/subviews/RegistrationView'

Vue.use(VueRouter)

const routes = [
    {
        path:'/',
        name:'Home',
        component:Home,
        meta:{
            showTab:true
        }
    },{
        path:'/order',
        name:'Order',
        component:Order,
        meta:{
            showTab:true
        }
    },{
        path:'/message',
        name:'Message',
        component:Message,
        meta:{
            showTab:true
        }
    },{
        path:'/mine',
        name:'Mine',
        component:Mine,
        meta:{
            showTab:true
        }
    },{
        path:'/registration',
        name:'Registration',
        component:Registration,
        meta:{
            showTab:false
        }
    }
]

const router = new VueRouter({
    routes
})

export default router